cmake_minimum_required(VERSION 3.10)
project(dabai_opencv)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(CMAKE_BUILD_TYPE "Release")

find_package(Boost REQUIRED COMPONENTS filesystem)
#find_package(OpenCV REQUIRED)
# message(" -- opencv_version: " ${OpenCV_VERSION})

file(GLOB sources *.cpp ./src/*.cpp)
file(GLOB includes *.h ./include/*.h)

include_directories(./)
include_directories(./include)
include_directories(/usr/local/include)
# include_directories(${OpenCV_INCLUDE_DIRS})

link_directories(./lib)
link_directories(/usr/local/lib)
# link_directories(${OpenCV_LIBRARY_DIRS})

add_executable(dabai_opencv main.cpp ${sources})

# target_link_libraries(obj_all ${OpenCV_LIBS}) #${PCL_LIBRARIES})
target_link_libraries(dabai_opencv libOpenNI2.so)
target_link_libraries(dabai_opencv libopencv_core.so)
target_link_libraries(dabai_opencv libopencv_highgui.so)
target_link_libraries(dabai_opencv libopencv_imgproc.so)
target_link_libraries(dabai_opencv libopencv_imgcodecs.so)
target_link_libraries(dabai_opencv libopencv_videoio.so)
target_link_libraries(dabai_opencv libpthread.so)
target_link_libraries(dabai_opencv libboost_system.so)

